package com.shiyi.gateway.controller;

import com.shiyi.core.utils.result.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shiyi
 * @version 1.0
 * @date 2020-12-10 17:33
 */
@RestController
public class FallbackController {

    @RequestMapping("/defaultfallback")
    public Result<String> defaultfallback(){
       return Result.error(500, "服务超时降级");
    }
}
